import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersitedstate from "pinia-plugin-persistedstate";
import App from "./App.vue";
import router from "./router";
import "./styles/common.scss";
import { lazyPlugin } from "@/directives/index";
const app = createApp(App);
//引用全局组件
const pinia = createPinia();
import { componentsPlugin } from "./components/index";
//配置pinia持久化插件
pinia.use(piniaPluginPersitedstate);
app.use(pinia);
app.use(componentsPlugin);
app.use(router);
//使用全局自定义指令
app.use(lazyPlugin);
app.mount("#app");
